export default [
  {
    path: '/',
    name: 'HomeIndex',
    meta: {
      keepAlive: true,
      title: '首页',
      isImmerse: true, // 是否沉浸
      statusBarBgColor: '#FFFFFF', // 状态栏背景色：默认为绿色(#00C8B4),
      statusBarType: 1 // 状态栏颜色：1 黑色，2 白色 （默认为黑色）
    },
    component: () => import('@/views/index/index')
  },
  {
    path: '/customPage/:id',
    name: 'CustomPage',
    meta: {
      keepAlive: true,
      title: '自定义页面',
      statusBarBgColor: '#FFFFFF',
      statusBarType: 1
    },
    component: () => import('@/views/customPage/index'),
    props: true
  },
  {
    path: '/customSpuLayout',
    components: {
      layout: () => import('@/views/customPage/SpuList')
    },
    children: [
      {
        path: '/customPage/:id/spu/list',
        name: 'CustomSpuProduct',
        meta: {
          keepAlive: true,
          title: '自定义页面SPU商品列表',
          statusBarBgColor: '#FFFFFF',
          statusBarType: 1
        },
        component: () => import('@/views/product/finished'),
        props: true
      }
    ]
  }
]
